package com.rd.student.jike.class4.xiayinyin.day0731;

import java.util.ArrayList;

public class Exercises04 {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>(20);
        while (list.size() < 20){
            int random = (int)(Math.random()*50);
            if(!list.contains(random)){
                list.add(random);
            }
        }
        System.out.println(list);
    }
}
